/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package stendcontrol;

import java.io.Serializable;

/**
 *
 * @author minaev
 */
public class Param implements Serializable{

    private String name;
    private double value;
    private int type;
    public final static int P_OTHER = 0;
    public final static int P_MEAN = 1;
    public final static int P_DISP = 2;
    public final static int P_MIN = 3;
    public final static int P_MAX = 4;
    public static final String[] names_type = {
        "Прочее",
        "Мат. Ожидание",
        "Дисперсия",
        "Минимум",
        "Максимум",
    };

    public Param(String name, int type, double value) {
        this.name = name;
        this.value = value;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public double getValue() {
        return value;
    }

    public int getType() {
        return type;
    }

    @Override
    public String toString() {
        return name + ":" + value + " (" + names_type[type] + ")";
    }
}
